package MyBatis.model;

import org.apache.ibatis.type.Alias;

import java.util.List;

/**
 * @Fou Jack of all trades and master of none.
 * @date 2022/1/6 11:42
 */

public class User {
    private int Id;
    private String Name;
    private int Age;
    private double Money;
    private UserState States;
    private Card card;
    private List<Role> roles;
    private List<Course> courses;

    public Card getCard() {
        return card;
    }

    public void setCard(Card card) {
        this.card = card;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public List<Course> getCourses() {
        return courses;
    }

    public void setCourses(List<Course> courses) {
        this.courses = courses;
    }

    public User(String tName, int tAge, double tMoney, UserState tstates) {
        Name = tName;
        Age = tAge;
        Money = tMoney;
        States = tstates;
    }


    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public int getAge() {
        return Age;
    }

    public void setAge(int age) {
        Age = age;
    }

    public double getMoney() {
        return Money;
    }

    public void setMoney(double money) {
        Money = money;
    }

    public UserState getStates() {
        return States;
    }

    public void setStates(UserState states) {
        States = states;
    }

    public User(int id, String name, int age, double money, UserState states) {
        Id = id;
        Name = name;
        Age = age;
        Money = money;
        States = states;
    }

    @Override
    public String toString() {
        return "User{" +
                "Id=" + Id +
                ", Name='" + Name + '\'' +
                ", Age=" + Age +
                ", Money=" + Money +
                ", States=" + States +
                '}';
    }

    public User() {
    }
}
